package com.dkm.biz.gl.repository.impl;

import java.util.ArrayList;
import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.dkm.base.core.helper.SpringHelper;
import com.dkm.base.db.persistence.dao.IQueryDao;
import com.dkm.biz.repository.AbstractRepository;
import com.dkm.biz.gl.domain.EmailConfig;
import com.dkm.biz.gl.repository.EmailConfigRepository;
import com.dkm.biz.gl.persistence.dao.EmailConfigQueryDao;
import com.dkm.biz.gl.persistence.entity.EmailConfigPo;

/**
 * 对象功能:邮箱管理设置 Repository接口的实现类
 * 开发公司:dkm.com
 * 开发人员:ZHH
 * 创建时间:2016-12-07 10:37:42
 */
@Repository
public class EmailConfigRepositoryImpl extends AbstractRepository<String, EmailConfigPo,EmailConfig> implements EmailConfigRepository{
	  
	@Resource
	private  EmailConfigQueryDao emailConfigQueryDao;

	public EmailConfig newInstance() {
		EmailConfigPo po = new EmailConfigPo();
		EmailConfig emailConfig = SpringHelper.getBean(EmailConfig.class);
		emailConfig.setData(po);
		return emailConfig;
	}

	public EmailConfig newInstance(EmailConfigPo po) {
		EmailConfig emailConfig = SpringHelper.getBean(EmailConfig.class);
		emailConfig.setData(po);
		return emailConfig;
	} 
	
	@Override
	protected IQueryDao<String, EmailConfigPo> getQueryDao() {
		return emailConfigQueryDao;
	}
	
}
